//调用接口配置文件
import { request } from 'config/request'

// 根据outerId查询直播数据统计
export async function getLiveBaseStatistics(params) {
	return request({
		url:'/mideadc-live-center-service/live/liveRoom/querySumLiveInfoByOuterId',
		method:'GET',
		data:params,
		headers:{
			"Content-type":"application/json",
		}
	});
}
// 获取在线观众分布
export async function getLineChart(params) {
	return request({
		url: '/mideadc-live-center-service/live/liveWatch/queryWatchingPersonCount',
		method: 'POST',
		data: params,
		headers:{
			"Content-type":"application/json",
		}
	});
};

// 观看时长分析
export async function getBarChart(params) {
	return request({
		url: 'mideadc-live-center-service/live/liveWatch/queryWatchDuration',
		method: 'POST',
		data: params,
		headers:{
			"Content-type":"application/json",
		}
	});
};

// 地区分布数据
export async function getAreaChart(params) {
	return request({
		url: '/mideadc-live-center-service/live/liveWatch/queryWatchPersonFromCity',
		method: 'POST',
		data: params,
		headers:{
			"Content-type":"application/json",
		}
	});
};

// 地区分布数据maskers集合
export async function getUserPosition(params) {
	return request({
		url: '/mideadc-live-center-service/live/liveWatch/getUserPosition',
		method: 'POST',
		data: params,
		headers:{
			"Content-type":"application/json",
		}
	});
};
// 地区分布数据maskers集合2
export async function getUserPosition2(params) {
	return request({
		url: `/admin/liveBroadcast/audience/${params.id}/`,
		method: 'GET',
		data: {pageSize:18},
		headers:{
			"Content-type":"application/json",
		}
	});
};

